<template>
  <div>
    <span>{{ msg }} {{ value }}</span>

    <button @click="onClick">点我，触发自定义事件，通知父组件</button>
  </div>
</template>

<script>
export default {
  name: "BaseInput",
  props: ["msg", "value"],
  methods: {
    onClick() {
      this.$emit("input", "李四");
    },
  },
};
</script>
